import axios from '@/utils/request';

const appName = process.env.VUE_APP_SAAS;

export default {
   // 列表
   getList (params) {
    return axios.get(`${appName}/compose/group/list`, params);
  },
   // 套餐组 --- 增/删/改
   composeGroupOperate (params) {
    return axios.post(`${appName}/compose/group/op`, params);
  },

  // 套餐组详情
  composeList (params) {
    return axios.get(`${appName}/compose/list`, params);
  },

  // 套餐组详情
  composeGroupInfo (params) {
    return axios.get(`${appName}/compose/group/info`, params);
  },

  // 套餐 新增/删除/编辑
  composeOperate(params) {
    return axios.post(`${appName}/compose/operation`, params);
  },
   // 套餐详情 [产品列表]
   composeProductDetail (params) {
    return axios.get(`${appName}/compose/detail/query`, params);
  },
   // 套餐 - 增删改 [产品]
   composeProductOperate (params) {
    return axios.post(`${appName}/compose/detail/op`, params);
  },

};
